<script setup lang="ts" name="XtxTabsPane">
import { inject } from 'vue'

defineProps<{
  label?: string
  name?: string
}>()
// 接收父组件tabs传过来的值
const activeNameValue = inject('activeNameValue')
</script>

<template>
  <div class="xtx-tabs-panel" v-show="activeNameValue === name">
    <slot></slot>
  </div>
</template>
